//
//  UILabel+Extension.swift
//  Weibo12
//
//  Created by HM on 15/12/28.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
    }
    
}

extension UIButton {
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.setTitleColor(textColor, forState: UIControlState.Normal)
        self.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}